use sea_orm::{prelude::Date, FromQueryResult};
use serde::Serialize;

/// 新聘员工表项
#[derive(Serialize, FromQueryResult)]
pub struct EntryItem {
    pub department: String,
    pub position: String,
    pub name: String,
    pub sex: String,
    pub entry_date: Date,
    pub education: Option<String>,
}

/// 离职员工表项
#[derive(Serialize, FromQueryResult)]
pub struct ResignationItem {
    pub department: String,
    pub position: String,
    pub name: String,
    pub sex: String,
    pub resign_date: Date,
    pub reason: Option<String>,
}
